package epis.unsa;
import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Alumno {
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;
	
    @Persistent
	private Long cui;

	public void setCui(Long cui) {
		this.cui = cui;
	}

	@Persistent
    private String firstname;
	
	@Persistent
	private String lastname;

	@Persistent
	private String email;

	@Persistent
	private String handle;
	
	@Persistent
	private Date date;

	public Alumno(Long cui, String firstname, String lastname, String email, String handle, Date date){
		this.cui = cui;
		this.firstname = firstname;
		this.lastname = lastname;
		this.email = email;
		this.handle = handle;
		this.date = date;
	}


    public Date getDate() {
		return date;
	}


	public void setDate(Date date) {
		this.date = date;
	}


	public Long getId() {
        return id;
    }

	public String getFirstname() {
		return firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getHandle() {
		return handle;
	}

	public void setHandle(String handle) {
		this.handle = handle;
	}

	public Long getCui() {
		return cui;
	}
	
}
